import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './store'
import router from './router/index'
import { createI18n } from 'vue-i18n'
import enUS from './locales/enUS.json'
import zhCN from './locales/zhCN.json'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'viewerjs/dist/viewer.css';
import VueViewer from 'v-viewer';
import vue3videoPlay from 'vue3-video-play'; // 引入组件
import 'vue3-video-play/dist/style.css'; // 引入css
 
const i18n = createI18n({
    locale: 'zhCN',
    messages: {
      enUS,
      zhCN
    }
  })

const app = createApp(App)
//组件
app.use(ElementPlus, { size: 'small', zIndex: 10  }) 
//图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
//---
app.use(i18n);
app.use(store);
app.use(router);
app.use(VueViewer);
app.use(vue3videoPlay);
app.mount('#app');
